package com.cd.song.api;

import com.cd.song.jpa.domain.SongTagRelation;

import java.util.List;
import java.util.Optional;

public interface SongTagRelationService {

    List<SongTagRelation> findAll();

    List<SongTagRelation> findByTagId(Long tagId);

    SongTagRelation save(SongTagRelation relation);

    void deleteBySongIdAndTagId(Long songId, Long tagId);

    Optional<SongTagRelation> findBySongIdAndTagId(Long songId, Long tagId);
}